package com.link2room.rodimus.feign.aeriabots;

import com.link2room.aeriabots.dto.param.inside.WxPromotionTransfersInsideParamDto;
import com.link2room.aeriabots.dto.result.base.WxPromotionTransfersResDto;
import com.link2room.common.dto.result.base.BaseResultDto;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by sss on 2016/11/17.
 */
@FeignClient("${spring.gateway.name}/${feign.aeriabots}")
public interface WxPromotionTransfersFeignService {
    /**
     * 创建微信二维码
     * @param paramDto
     * @return
     * @throws Exception
     */
    @RequestMapping(method = RequestMethod.POST,value = "/in/PromotionTransfers",consumes = MediaType.APPLICATION_JSON_VALUE)
    BaseResultDto<WxPromotionTransfersResDto> promotionTransfers(@RequestBody WxPromotionTransfersInsideParamDto paramDto)throws Exception;
}
